import React, { Component } from 'react'

export default class Child2 extends Component {
  fn = () => {
    this.props.updateInfo('兄弟间传值')
  }
  render() {
    return (
      <div>
        <h3>Child2</h3>
        <button onClick={this.fn}>兄弟间传值</button>
      </div>
    )
  }
}
